<?php

use yii\helpers\Html;

/* @var $this  yii\web\View */
/* @var $model \yii2mod\rbac\models\BizRuleModel */

$this->title = Yii::t('region', 'Create RegionType');
//$this->params['breadcrumbs'][] = ['label' => Yii::t('yii2mod.rbac', 'Rules'), 'url' => ['index']];
//$this->params['breadcrumbs'][] = $this->title;
//$this->render('/layouts/_sidebar');
?>
<div class="rule-item-create" style="min-height: 1126px;">

    <section class="content-header">

    <h3><?php echo Html::encode('查看' . $prodSpecName . '信息'); ?></h3>
        <ol class="breadcrumb">
            <?php
            echo Html::a(Yii::t('region', 'Back')   , Yii::$app->request->getReferrer() , ['class' => 'btn btn-success']);
            ?>
        </ol>
    </section>



    <section class="content">


        <div class="row">

            <div class="col-md-12">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#buildingmng" data-toggle="tab" aria-expanded="true">楼宇管理</a></li>
                        <li class=""><a href="#business" data-toggle="tab" aria-expanded="false">招商管理</a></li>
                        <li class=""><a href="#activity" data-toggle="tab" aria-expanded="false">楼盘图片</a></li>
                        <li class=""><a href="#timeline" data-toggle="tab" aria-expanded="false">跟进记录</a></li>
                        <li class=""><a href="#info" data-toggle="tab" aria-expanded="false">楼盘详情</a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="buildingmng">

                            <?php
                            echo $this->render('buildingmng_head', [
                                'totalProd' =>'1',
                                'totalArea' =>'66666'

                            ]);
                            ?>

                        </div>
                        <div class="tab-pane" id="business"></div>
                        <div class="tab-pane" id="activity">

                            <div class="row margin-bottom">
                                <div class="col-sm-6">
                                    <?php if ($p1[6]): ?>
                                        <?php $urls = $p1[6]; ?>
                                        <?php foreach ($urls as $url): ?>
                                            <img class="img-responsive" src="<?= Html::encode( $url ) ?>" alt="Photo">
                                        <?php endforeach; ?>
                                    <?php endif; ?>
                                </div>
                                <!-- /.col -->
                                <div class="col-sm-6">
                                    <div class="row">
                                        <div class="col-sm-6">
                                            <img class="img-responsive" src="../../dist/img/photo2.png" alt="Photo">
                                            <br>
                                            <img class="img-responsive" src="../../dist/img/photo3.jpg" alt="Photo">
                                        </div>
                                        <!-- /.col -->
                                        <div class="col-sm-6">
                                            <img class="img-responsive" src="../../dist/img/photo4.jpg" alt="Photo">
                                            <br>
                                            <img class="img-responsive" src="../../dist/img/photo1.png" alt="Photo">
                                        </div>
                                        <!-- /.col -->
                                    </div>
                                    <!-- /.row -->
                                </div>
                                <!-- /.col -->
                            </div>
                        </div>
                        <div class="tab-pane" id="timeline">
                            <!-- The timeline -->
                            <ul class="timeline timeline-inverse">
                                <!-- timeline time label -->
                                <li class="time-label">
                        <span class="bg-red">
                          10 Feb. 2014
                        </span>
                                </li>
                                <!-- /.timeline-label -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-envelope bg-blue"></i>

                                    <div class="timeline-item">
                                        <span class="time"><i class="fa fa-clock-o"></i> 12:05</span>

                                        <h3 class="timeline-header"><a href="#">Support Team</a> sent you an email</h3>

                                        <div class="timeline-body">
                                            Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles,
                                            weebly ning heekya handango imeem plugg dopplr jibjab, movity
                                            jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle
                                            quora plaxo ideeli hulu weebly balihoo...
                                        </div>
                                        <div class="timeline-footer">
                                            <a class="btn btn-primary btn-xs">Read more</a>
                                            <a class="btn btn-danger btn-xs">Delete</a>
                                        </div>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-user bg-aqua"></i>

                                    <div class="timeline-item">
                                        <span class="time"><i class="fa fa-clock-o"></i> 5 mins ago</span>

                                        <h3 class="timeline-header no-border"><a href="#">Sarah Young</a> accepted your friend request
                                        </h3>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-comments bg-yellow"></i>

                                    <div class="timeline-item">
                                        <span class="time"><i class="fa fa-clock-o"></i> 27 mins ago</span>

                                        <h3 class="timeline-header"><a href="#">Jay White</a> commented on your post</h3>

                                        <div class="timeline-body">
                                            Take me to your leader!
                                            Switzerland is small and neutral!
                                            We are more like Germany, ambitious and misunderstood!
                                        </div>
                                        <div class="timeline-footer">
                                            <a class="btn btn-warning btn-flat btn-xs">View comment</a>
                                        </div>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <!-- timeline time label -->
                                <li class="time-label">
                        <span class="bg-green">
                          3 Jan. 2014
                        </span>
                                </li>
                                <!-- /.timeline-label -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-camera bg-purple"></i>

                                    <div class="timeline-item">
                                        <span class="time"><i class="fa fa-clock-o"></i> 2 days ago</span>

                                        <h3 class="timeline-header"><a href="#">Mina Lee</a> uploaded new photos</h3>

                                        <div class="timeline-body">
                                            <img src="http://placehold.it/150x100" alt="..." class="margin">
                                            <img src="http://placehold.it/150x100" alt="..." class="margin">
                                            <img src="http://placehold.it/150x100" alt="..." class="margin">
                                            <img src="http://placehold.it/150x100" alt="..." class="margin">
                                        </div>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <li>
                                    <i class="fa fa-clock-o bg-gray"></i>
                                </li>
                            </ul>
                        </div>
                        <div class="tab-pane" id="info">

                                <div class="box box-primary col-sm-6">
                                    <div class="box-body box-profile">
                                        <h3 class="profile-username text-center"><?= Html::encode( $model->prod_name ) ?></h3>
                                        <p class="text-muted text-center"><?= Html::encode( $model->parentRegions->region_name . ' ' . $model->regions->region_name ) ?></p>

                                        <ul class="list-group list-group-unbordered">

                                            <?php foreach ($model->prodAttrInsts as $prodAttrInst): ?>
                                                <li class="list-group-item">
                                                    <b><?= Html::encode( $attrSpecNames[$prodAttrInst->attr_spec_id]['name'] ) ?></b> <a class="pull-right"><?= Html::encode( $prodAttrInst->content  ) ?></a>
                                                </li>
                                            <?php endforeach; ?>


                                            <?php foreach ($topShows as $topShow): ?>
                                                <li class="list-group-item">
                                                    <b><?= Html::encode( $topShow['field_name'] ) ?></b> <a class="pull-right"><?= Html::encode( $topShow['field_values'] ) ?></a>
                                                </li>
                                            <?php endforeach; ?>
                                        </ul>
                                    </div>
                                </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>